package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * spu信息(SpuInfo)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_spu_info")
@Schema(name = "spu信息实体", description = "spu信息映射")
public class SpuInfo implements Serializable {
    private static final long serialVersionUID = -46798822251823064L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "商品id")
    private Long id;

    @TableField(value = "spu_name")
    @Schema(description = "商品名称")
    private String spuName;
    
    @TableField(value = "spu_description")
    @Schema(description = "商品描述")
    private String spuDescription;
    
    @TableField(value = "catalog_id")
    @Schema(description = "所属分类id")
    private Long catalogId;
    
    @TableField(value = "brand_id")
    @Schema(description = "品牌id")
    private Long brandId;
    
    @TableField(value = "weight")
    @Schema(description = "")
    private Double weight;
    
    @TableField(value = "publish_status")
    @Schema(description = "上架状态[0 - 下架，1 - 上架]")
    private Integer publishStatus;
    
	@TableField(value = "create_time" , fill = FieldFill.INSERT)
    @Schema(description = "")
    private Date createTime;
    
	@TableField(value = "update_time" , fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "")
    private Date updateTime;
    
}

